Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overridden: backoffice: Display call number for items #905

Merged

Conversation

sakshamarora1
Copy link
Contributor

closes: #904

Screenshot 2024-06-14 at 13 01 47

render() {
const { documentItems, isLoading, error } = this.props;
return (
<Loader isLoading={isLoading}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in invenio-app-ils you need to wrap this part with "DocumentItems.layout" which and pass this.renderTable as defined above. You will only override render function this way and avoid copying the whole component implementation, which is better for maintainability.
leave this part https://github.com/inveniosoftware/react-invenio-app-ils/pull/634/files#diff-18cb68f31fd99cfccf353466e41bb79106fcd071dfc552964bcfe7fa071a92f9R116 intact though, it is still a good improvement

@@ -71,4 +72,5 @@ export const overriddenCmps = {
"Acquisition.OrderLine": OrderDetailsLine,
"DocumentCirculation.Extras": DocumentCirculationExtras,
"ItemCirculation.backoffice.shelf": ItemCirculationShelf,
"DocumentDetails.DocumentItems": DocumentItems,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"DocumentDetails.DocumentItems": DocumentItems,
"DocumentDetails.DocumentItems.layout": DocumentItemsLayout,

Check my comment below for more details

@kpsherva kpsherva merged commit 663c657 into CERNDocumentServer:master Jun 14, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix the UI after deployment
2 participants